package com.tbs.parkingsaleapp.UI.Adapters.Sorters;

import com.tbs.parkingsaleapp.DataTool.Cal;
import com.tbs.parkingsaleapp.Http.JsonData.ParkResult;

import java.util.Comparator;

public class Rcm_PriceSorter implements Comparator<ParkResult> {
    @Override
    public int compare(ParkResult o1, ParkResult o2) {
        return o2.Recommond().raw[Cal.rcm_PRICE]- o1.Recommond().raw[Cal.rcm_PRICE]>=0?1:-1;
    }
}
